package hk.xing.boot.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: API 响应枚举
 * @author tangzhaofeng
 * @version 1.0
 */



@Getter
@AllArgsConstructor
public enum APIResponseEnum {

    //成功响应
    SUCCESS(100 , "OK" ),
    OCCUPIED(101 , "Occupied") ,
    NODATA(102 , "No Data") ,
    REFRESH(103 , "Refresh"),
    ERROR(105 , "Error"),
    NOAUTH(106 , "No Auth"),
    NOLOGIN(107 , "No Login"),
    TOKEN_INVALID(108 , "Token has invalid"),
    TOKEN_EXPIRED(109 , "Token has expired"),
    LOGIN_PASSWORD_ERROR(109 , "Password error"),
    LOGIN_NOT_ALLOW_NULL(110 , "Account or Password do not allow null"),
    LOGIN_FAIL(111 , "Validated Fail")
    ;


    private Integer code ;


    private String message ;

}
